//
//  JPAddressCell.m
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/18.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "JPAddressCell.h"
@interface JPAddressCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *mobNumLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;

@end
@implementation JPAddressCell
#pragma mark: - 删除按钮监听
- (IBAction)deleteButtonClick
{
    [self.delegate addrCellDeleteButtonClick:self deleteButtonClick:self.model];
   
}
- (void)setModel:(DHAddressModel *)model
{
    _model = model;
    
    self.nameLabel.text = model.true_name;
    self.addressLabel.text = [NSString stringWithFormat:@"%@ %@",model.area_info,model.address];
    self.mobNumLabel.text = model.mob_phone;
}
#pragma mark: - 编辑地址按钮键盘
- (IBAction)modifyAddrClick:(UIButton *)sender
{
    [self.delegate addrCell:self didModifyButton:self.model];
}

- (void)awakeFromNib {
    [super awakeFromNib];

}


@end
